From fa2e4d38164453f7d000cc30d6cc47ffa1d77539 Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Fri, 25 Sep 2015 18:04:46 +0200 Subject: [PATCH] remove unused macros from sched.h The macros num_cpupool_cpus() and domain_is_locked() aren't used by anyone. Remove them. Signed-off-by: Juergen Gross Reviewed-by: Andrew Cooper --- xen/include/xen/sched.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 8053b5a56f..68819f8c84 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -260,7 +260,6 @@ struct vcpu /* Per-domain lock can be recursively acquired in fault handlers. */ #define domain_lock(d) spin_lock_recursive(&(d)->domain_lock) #define domain_unlock(d) spin_unlock_recursive(&(d)->domain_lock) -#define domain_is_locked(d) spin_is_locked(&(d)->domain_lock) /* VM event */ struct vm_event_domain @@ -894,8 +893,6 @@ int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op); void schedule_dump(struct cpupool *c); extern void dump_runq(unsigned char key); -#define num_cpupool_cpus(c) cpumask_weight((c)->cpu_valid) - void arch_do_physinfo(xen_sysctl_physinfo_t *pi); #endif /* __SCHED_H__ */ -- 2.30.2